package com.macro.mall.common.util;

public class ExceptionUtils {

    public static String getRootCauseMessage(Exception e) {
        Throwable  cause = (Exception) e;
        while (cause.getCause() != null) {
            cause = cause.getCause();
        }
        return cause.getMessage();
    }
}
